home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 34.zip
/
BS1 part 34
/
FredFish PD 319.adf
/
CNewsSrc
/
cnews.src.lzh
/
libcnews
/
Makefile
< prev
next >
Wrap
Makefile
|
1989-07-13
|
1KB
|
62 lines
# AMIGA
CC = cc
# libcnews makefile
INCLUDE= /include
DEFINES= -I$(INCLUDE)
# AMIGA
#COPTS= -O # -pg -p # +L (long ints)
COPTS = -DFJE -DAMIGA
CFLAGS= $(COPTS) $(DEFINES)
LINTFLAGS=-hau $(DEFINES)
LIB=/libcnews.lib
# RANLIB is ranlib on non-USG systems, echo on USG systems
#RANLIB=ranlib
#RANLIB=echo
#RANLIB=:
SRCS=complain.c config.c fopenclex.c hostname.c \
lock.c ltoza.c ngmatch.c readline.c \
string.c strlower.c strsave.c str3save.c time.c
OBJS = complain.o config.o fopenclex.o gethdr.o hostname.o lock.o \
ltoza.o nemalloc.o ngmatch.o str3save.o string.o strlower.o \
strsave.o time.o
# workaround for System V make bug
SHELL = /bin/sh
.c.o:
$(CC) $(CFLAGS) $*.c
u: $(OBJS)
lb $(LIB) -d $(OBJS)
lb $(LIB) -a+ $(OBJS)
lb $(LIB) -u
# oml /libcnews.a r $(OBJS)
# ar ruv ../libcnews.a $(OBJS)
all: $(OBJS)
$(LIB): $(SRCS)
$(CC) $(COPTS) $?
lb $(LIB) -r $(OBJS)
rm *.o
# oml /libcnews.a r $(OBJS)
# ar rv $@ *.o
# $(RANLIB) $@
lint:
lint $(LINTFLAGS) $(SRCS)
clean:
rm -f *.o
# header dependencies for libcnews.a
config.o: $(INCLUDE)/news.h $(INCLUDE)/config.h
lock.o: $(INCLUDE)/news.h
ngmatch.o: $(INCLUDE)/news.h
time.o: $(INCLUDE)/news.h
# ltoza.o: $(INCLUDE)/stdlib.h # trouble if stdlib.h is system one, not ours